<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>网站后台</title>
    {!! Admin::css() !!}
    <link rel="stylesheet" href="{{ asset('assets/editable/css/bootstrap-editable.css') }}">
    <link rel="stylesheet" href="{{ asset('assets/fa/css/fontawesome-all.min.css') }}">
    <link rel="stylesheet" href="{{ asset('assets/layui/css/layui.css') }}">
    <link rel="stylesheet" href="{{ asset('assets/admin/css/admin.css') }}">
    <link rel="stylesheet" href="{{ asset('assets/toastr/toastr.css') }}">
</head>
<body class="layui-layout-body">

<div class="layui-layout layui-layout-admin">
    @include('admin.partials.header')

    @include('admin.partials.sidebar')

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div style="padding: 15px;">
            @yield('content')
        </div>
    </div>

    @include('admin.partials.footer')
</div>
<script>
    function laravel() {
    }

    laravel.token = "{{ csrf_token() }}";
</script>
<script src="{{ asset('assets/admin/js/jquery-1.12.4.min.js') }}"></script>
<script src="{{ asset('assets/bootstrap/js/bootstrap.min.js') }}"></script>
<script src="{{ asset('assets/admin/js/jquery.form.min.js') }}"></script>
<script src="{{ asset('assets/admin/js/jquery.nestable.js') }}"></script>
<script src="{{ asset('assets/toastr/toastr.min.js') }}"></script>
<script src="{{ asset('assets/editable/js/bootstrap-editable.min.js') }}"></script>
<script src="{{ asset('assets/layui/layui.js') }}"></script>
<script src="{{ asset('assets/admin/js/utils.js') }}"></script>
<script src="{{ asset('assets/admin/js/admin.js') }}"></script>
{!! Admin::js() !!}

<script>
    layui.use(['element', 'form'], function () {
        var element = layui.element;
        var form = layui.form;

        {!! Admin::script() !!}
    });
</script>

@include('admin.flash_msg')

@if(config('app.debug'))
    @include('sudosu::user-selector')
@endif

</body>
</html>